<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}

</style>

</head>
<body>



	<div class="container-fluid" data-ng-controller="profitLossQueryListCtrl as Model">

		<div class="row">
			<div class="col-sm-12">
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<button type="button" class="btn btn-default"
									data-ng-disabled="!Model.dataMaster.readonly()"
									data-ng-click="Model.refresh()">
									<span class="glyphicon glyphicon-refresh"></span> 刷新
								</button>
								<button type="button" class="btn btn-default"
									data-ng-disabled="Model.dataMaster.currentIndex==null || Model.dataMaster.getCurrentState()"
									data-ng-show="Model.dataMaster.readonly()"
									data-ng-click="Model.edit();">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>

								<button type="button" class="btn btn-success "
									data-ng-show="!Model.dataMaster.readonly()"
									data-ng-click="Model.save();">
									<span class="glyphicon glyphicon-floppy-save"></span> 保存
								</button>
								<button type="button" class="btn btn-warning "
									data-ng-show="!Model.dataMaster.readonly()"
									data-ng-click="Model.saveCancel();">
									<span class="glyphicon glyphicon-floppy-open"></span> 取消
								</button>
				
							</div>
						</li>
					</ul>
				</nav>

			</div>
		</div>
		

		<div class="row">
			<div class="col-sm-12">

				<div class="table-responsive">
					<table class="table table-hover table-condensed" data-readonly={{Model.dataMaster.readonly()}} style="margin:0px;">
						<thead>
							<tr>
								<th colspan="99"  style="padding:0px;">
									<span ng-if="false">Model.dataMaster.userdata.recordState-->>{{Model.dataMaster.userdata.recordState}}</span>
									<span ng-if="false">Model.dataMaster.userdata.changed-->>{{Model.dataMaster.userdata.changed}}</span>
								</th>
							</tr>
	
							<tr>
								<th>#</th>
								<th>科目名称</th>
								<th>科目编码</th>
								<th>参与结转</th>
								<th>转入科目名称</th>
								<th>转入科目编码</th>
							</tr>
						</thead>
						<tbody>
							<tr data-ng-show="row.userdata.recordState!='delete'"
								data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
								data-ng-click="Model.dataMaster.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataMaster.rows.indexOf(row),'rowID':row.fID.value})"
								data-ng-dblclick="Model.dataMaster.onRowDblClick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataMaster.rows.indexOf(row),'rowID':row.fID.value})"
								data-ng-repeat="row in Model.dataMaster.rows">
								
								<td style="width: 10px;">
									<span
									data-ng-show="Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)" class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
									<span data-ng-show="Model.dataMaster.currentIndex!=Model.dataMaster.rows.indexOf(row)">{{Model.dataMaster.rows.indexOf(row)+1}}</span>
								</td>
	
								<td style="width: 100px;"><span data-ng-bind="row.captionName.value"></span></td>
								<td style="width: 100px;"><span data-ng-bind="row.captionNo.value"></span></td>
								<td style="width: 100px;">
									<input type="checkbox" data-ng-model="row.carryFlag.value" ng-true-value="1" ng-false-value="0" ng-disabled="Model.dataMaster.userdata.recordState=='none'" />
								</td>
								<td style="width: 100px;" td-input="inputbtn" 
									iptclick="Model.grid_carriedNoButtonClick()"
									data-ng-model="row.carriedName.value"><span
									data-ng-bind="row.carriedName.value"></span>
								</td>
								<td style="width: 100px;"><span data-ng-bind="row.carriedNo.value"></span></td>
								
							</tr>
						</tbody>
	
						<tfoot>
							<tr>
								<th colspan="99"  style="padding:0px;">
								</th>
							</tr>
						</tfoot>
	
					</table>
				</div>
				
				
			</div>
		</div>


	</div>





</body>

</html>

